package com.hyou.cert.config;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class DataConfig {
    
    /**
     * 终端证书
     */
    private static String termPfxData;
    
    /**
     * 终端证书口令
     */
    private static String termPwd;
    
    static {
        
        termPfxData = "MIIKLQIBAzCCCfcGCSqGSIb3DQEHAaCCCegEggnkMIIJ4DCCCdwGCSqGSIb3DQEHAaCCCc0EggnJMIIJxTCCBHwGCyqGSIb"
                + "3DQEMCgEDoIIEDjCCBAoGCiqGSIb3DQEJFgGgggP6BIID9jCCA/IwggLaoAMCAQICBgFVKNmbODANBgkqhkiG9w0BAQsFADBjMQ"
                + "swCQYDVQQGEwJDTjERMA8GA1UECh4IVv1OpE/hkBoxDDAKBgNVBAsTA1BLSTEzMDEGA1UEAx4qAE8AcABlAHIAYQB0AGkAbwBuA"
                + "CAAQwBBACAAZgBvAHIAIFb9TqRP4ZAaMB4XDTE2MDYwNzAzMTMxN1oXDTI2MDYwNTAzMTMxN1owQTELMAkGA1UEBhMCQ04xFTAT"
                + "BgNVBAoeDIuhZfZ+yHrvi8FOZjEbMBkGA1UEAxMSeHczNDkxNTYyNTg1MjA2MjYyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMII"
                + "BCgKCAQEAqy27LFd22PIXt4FuNEa/IWJWHsDAWjfH0pTO6Vej9rleRdAMMPWl3VuXDyz46Za8EG/wYJrjvNneV8xRPGp2b+aC01"
                + "yOAUR/hWomDpd93xm4iIUrGW1Jt/z9nMjpeqxC/U7lmlxTocNJBPCKMGY2i7ecUbnR78U5O8LwbqCU8SPUKgwEJX87vb63Dlb79"
                + "ae4Csh7ZTsZ0nKW4wZBblAKOUWhwuLZ0aWNs+3HwX9JYkcrFYRphaKt/E+ucWS5HeKn/ah2vDLh7xJwgF5ngX/G5tls6fxBF35F"
                + "brtpgHWCF5eklH+A9wr882RIPcB03+mJ02SvctpG+5130cft5TxqbQIDAQABo4HNMIHKMB8GA1UdIwQYMBaAFFyqjorSazJMB8B"
                + "jazw0/H5+sq57MB0GA1UdDgQWBBTnsqqSSO88hO+a0uOFF72hgKgb6DBdBgNVHR8EVjBUMFKgUKBOpEwwSjEXMBUGA1UEAx4OAE"
                + "MAUgBMADEAMAAwADAxDzANBgNVBAseBgBDAFIATDERMA8GA1UECh4IVv1OpE/hkBoxCzAJBgNVBAYTAkNOMAkGA1UdEwQCMAAwC"
                + "wYDVR0PBAQDAgD4MBEGCWCGSAGG+EIBAQQEAwIAoDANBgkqhkiG9w0BAQsFAAOCAQEATkv7XwyloLD+BlivTiJvmREGRNwS44P1"
                + "OKnQei1ASIcnmrNLIMmOZuMP37hgXY0nsBi0U9F1p+n54jPjTweGlNogZIG2JE5Wzy4rrActvphMb2UMmnLwKuf+kdeYop9tlWf"
                + "vgoSj9aZisstcIi+l0CnsEpBRP6t6SIOhpsT8dTUH1aBvG4U0jW40e5pd3QVwzqqH0A/t8MJX9qdnMKEwEldS+ZpCTmldm9ljUl"
                + "7kvRPfCsJBRBmBaGLdMlefOpQZl1bz8Qv7JNkCJo/n3Tw9bjvbG4TeY7OBagBSMmKrHPGJqICHZldEcEALgPAkWaCRaKWVv3Pi7"
                + "+BXrIN9JeDVOTFbMBkGCSqGSIb3DQEJFDEMHgoAQQBMAEkAQQBTMD4GCSqGSIb3DQEJFTExBC9hNyAzMiBjNiBjZiAyYSA5NSA1"
                + "ZSBlYSAyZCA5NSBkNiAzOCA0NSBjMCA3MCBhMDCCBUEGCyqGSIb3DQEMCgECoIIE7jCCBOowHAYKKoZIhvcNAQwBBjAOBAjyvvp"
                + "L4duGpAICBAAEggTIN8PU5bXX956viJMGIojQw3bjiwnM+rQskpZhi6SKMVTJ7r12dQYtlz+9adIeb/FoxGW3c/3VT7LsONTOds"
                + "lr/8b4CjU0Xyxdh+9ILYunxwnUYAyzUtIrQN3pKqTeCnx44XdODZwpT2tYat0fqImMoR44UNU9t4iHfL+bfBW1ufO5UJjj0xRrQ"
                + "v8np4WCZSDkKlbRiIIy1AuGS9i+vDHwGx8BH5e6/f3IjlU12mfR1Hy0tOsqwz/onYeoHEQ6YbwZfwvK8RviZ0y0WodWmLzlPAFn"
                + "RNgESaWfjvfdBPTcUPHpAr5q9VpOCawELogP9L4CLwu5UTBlIxPcWS6CJCE4fmGT42yQUILKSnVJIHSQXGakkHoQdUzQct/kt13"
                + "2XTcKHdIrthlRbyNkefgIJ0xKg/KqM1t57zE6pJpzTU3zCHoXgB8jVtJGB19wuq8Qz0gdOqeQ3XnGSke0pJ+G8fe6xQtERpiGyl"
                + "nvvTjgiYUgsuzl27KW02lYPpxadnkNyjJycf7OdGHF9JC3+rgdhYsmPkI4InRP36VqQp+tCU655FSRilsyxx56umcaUsRMoke2P"
                + "MS54YAeN23Lzi7vHTLmhpTYM82FInRXfCqde2D6WdItRgHRGHpMqz7biBAIf0fHT2ZOC8D8jsPHTF0uOlQkWQoMf6HCWrg8SjA6"
                + "pzP9aO71xsRyFY6l+IWIuasz48gR/SLVHZBBL3D2H2/xS87ZJEIDnMbkv6nmV6EiPTo+DAumXDfVC3PLTmg9vJJIrNmKITV9ZyS"
                + "tXhVjPEeZG01NVW+9V/URN3o78Jw70Wh2nUKdMLBuoFYaZR839qpqWq9TfHhsp6/DnET2Ozft1u+HTfirK7vRs8NSmBIVDtkfGO"
                + "pqb6cIdiyiWLCmcJOWVjCg45wj33IgtwsLGtYXHvKjDKs2GoNx/wPwHKFv6rK5eXpp02bfpnZd7na3YaNor0zNVzeFGG6IxRNjJ"
                + "rkH3L1duY0VJi8Tj0Z8u7zBmvl+PQrGI6AlUCz5ozI4IdjyUOr9scWBPPXburXxbjUhyinzKR8rePTemLV7eSxdpoturmOPVcIb"
                + "oPCViL35zU4c1FhOY/0FMjRhdKEkb/wXcj9PcuPD26nAFbLNfXqwit7QRhp8r69oyuV+FCqlayiMBidGRH+zm/LdISvKylrQcTe"
                + "g+x8cR54fBGBJXesPNfPbju7kl0z1xebwTPE9imorbo9KX95gThklxYjBqOzkx2pynnBKX69uWndyAX2omyOvfY8PRxQNkBXbZW"
                + "Q3yiJVj+FuOFNTQ2dUhYmemP4PQIETb+JFLKoXRM4PaOX0pXesI5y0F5D2ntUOIc8bIpMRPUSbCJnth012tNhnlO0RSKb1rLisU"
                + "lb5DN4KHIETANFgTZyogQU8xUICEEhEkNYTES+L2n6rZ+fPKHl5maahCZooTJUdJoMfhgbGuriUEy2jmPKq19kv1Pm9Ap8gq9TS"
                + "misOlnkINN1Vv9WSuOKVS0DCM+xMIKox88w4HI4ANNlrhKs55s6maEHMsXhPrASl5/eYcFY5CBEc1e0B7KQ40McuaVzz8TYx6Tl"
                + "2O12sd42r+H+Q7ceTWe0pyPiFqVX37afwpe2NV7IvRa8N9SftSJubVY1kc3HP2baAMUAwPgYJKoZIhvcNAQkVMTEEL2E3IDMyIG"
                + "M2IGNmIDJhIDk1IDVlIGVhIDJkIDk1IGQ2IDM4IDQ1IGMwIDcwIGEwMC0wITAJBgUrDgMCGgUABBQvBaohDctGuzLXYI/IgmIga"
                + "jqwbgQI+kcdBivQ6+A=";
        
        termPwd = "SW2tA7UJqWXV";
    }
    
    public static byte[] getTermPfxData() {
        return Base64.getDecoder().decode(termPfxData.getBytes(StandardCharsets.UTF_8));
    }
    
    public static String getTermPwd() {
        return termPwd;
    }
    
}
